package com.lqgao.mapper;

import com.lqgao.entity.Attraction;
import com.lqgao.entity.ChartData;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface AttractionMapper {
    Attraction queryById(Integer id);

    long count(Attraction attraction);

    List<Attraction> queryAllByLimit(Attraction attraction);

    List<Attraction> queryAll(Attraction attraction);

    int insert(Attraction attraction);

    int update(Attraction attraction);

    int deleteById(Integer id);

    List<ChartData> getBasicData();

    List<ChartData> getMainData();

    List<ChartData> getSubData();
}
